let talib = require('talib.js');

 async function EMA(data:number[], timePeriod:number) {
     await talib.init();
     let result =  talib.EMA({inReal:data, timePeriod:20});

     return result?.output;

 }

export {
     EMA,
}